Scheduler for WinRT
Step 1 of 4: Setting Up the Application

In this step, you'll set up your Windows Store application and add a C1Scheduler control. For more information on creating a WinRT style application, see Creating a WinRT Style Application.

Complete these steps:

  1. In Visual Studio, select File -> New -> Project. This will open the New Project dialog window.
  2. From the left pane, select your programming language from the Templates section and click the drop-down arrow. Select Store Apps and then Windows Apps.
  3. Select Blank App (Windows) from the list of installed templates.
  4. Give your application a name and click OK. Your application will open.
  5. Locate your application in the Solution Explorer. Right-click the References folder and select Add New Reference from the context menu.
  6. In the Reference Manager, select the drop-down arrow for the Windows 8.1 section and choose Extensions. You should see the WinRT Assemblies in the center pane. Select the following assemblies and click OK:
  1. Double-click your MainPage.xaml page to open it. Add the following XAML namespace to your opening <Page> tag:
Markup
Copy Code
xmlns:Schedule="using:C1.Xaml.Schedule"

The whole <Page> tag should resemble the following:

Markup
Copy Code
<Page
    x:Class="SchedTest2.MainPage"
    xmlns:Schedule="using:C1.Xaml.Schedule"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SchedTest2"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
  1. Add the following markup to the <Grid> tag to add the C1Scheduler control to the application:
Markup
Copy Code
<Schedule:C1Scheduler Name="sched1" ViewType="Month" Grid.Row="1" Height="500" Width="650"></c1:C1Scheduler>

What You've Accomplished

In this topic, you created a Windows Store application, added assembly references, and added a C1Scheduler control to your application. In the next step, you'll add more XAML markup to your application, adding buttons to control the control's view.

See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback